# include"Game.h"



Game* g = 0;



void reshape(int width, int height)
{
	g->gResize(width,height);
}

void keyUp(unsigned char key, int x, int y)
{
	g->gKeysUp(key, x, y);
}

void keyDown(unsigned char key, int x, int y)
{
	g->gKeysDn(key, x, y);
}

void mouseButton(int button, int state, int x, int y)
{
	g->gMouseBtn(button,state,x,y);
}

void mouseMove(int x, int y)
{
	g->gMouseMve(x,y);
}

void display()
{
	g->gDisplay();
}

void moveConsole(){
 HWND cw = GetConsoleWindow();
 MoveWindow(cw,815,0,420, 650, true);
}
void main(int argc, char* argv[])
{
	moveConsole();
	g = new Game(argc, argv);
	g->gInit();
	glutMouseFunc(mouseButton);
	glutPassiveMotionFunc(mouseMove);
	glutKeyboardUpFunc(keyUp);
	glutKeyboardFunc(keyDown);
	glutReshapeFunc(reshape);
	glutDisplayFunc(display);
	g->gRun();
}